<?php

namespace app\api\service\common\token;

interface TokenServiceInterface
{
    public function generateToken(array $data): array;

    public function validateToken(string $token): array;

    public function refreshToken(string $refreshToken): array;

    public function disableUserTokens(string $username): void;

    public function clearExpiredTokens(): void;
    public function updateOnline(string $token): void;
}